namespace IMPlant.Core.Data.Ado
{
    using IMPlant.Core.Data.Ado.BaseSupport;
    using System;
    using System.Data.Common;

    public class BaseDaoSupport
    {
        private string _dbName;
        private AdoTemplete _template;

        public BaseDaoSupport(string dbName)
        {
            this._dbName = dbName;
            this._template = new AdoTemplete(this._dbName);
        }

        public DbConnection connncetion
        {
            get
            {
                return SqlClientDataBase.CreateDateBase(this._dbName).GetOpenConncetion();
            }
        }

        public AdoTemplete DBTemplete
        {
            get
            {
                return this._template;
            }
        }
    }
}

